package com.my.screenadapter.rxjavashow.guanchazhe;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by 张英杰 on 2017/3/2.
 * 具体观察者（ConcrereObserver）
 */

public class WeiXinUser implements Observer {
    // 微信用户名
    private String name;
    private Context context;


    public WeiXinUser(Context context, String name) {
        this.context = context;
        this.name = name;
    }

    @Override
    public void update(String str) {
        Toast.makeText(context, name + "---" + str, Toast.LENGTH_SHORT).show();
    }
}
